		function get_curOnline()
		{
		 $.ajax({	            
		 			url: base + 'index.php/play_durak/get_file',
		            data: "",
		            dataType: 'json',
		            success: function(data)
		            {
		            	if(data.length == 0)
		            	{		            		
			            	$('#onlineList')[0].innerHTML = 
			            		'<th>No Online Found</th>' 

			            	;
			     
		            	}
		            	else
		            	{
			            	$('#onlineList')[0].innerHTML = 
			            		'<th>Online</th>' +
			            		'<th id="stat">Status</th>'
			            	;
			     
			              		for(var x=0; x < data.length; x++)
					              { 
							            $('#onlineList')[0].innerHTML += 
						            		'<tr>' +
							            		'<td>' +
							            				 data[x]['fname'] +
							            			' '+ data[x]['lname'] +
							            		'</td>' +
								            	'<td>' +
							            		 	'<a href=#>Play</a>'+ 
							            		'</td>' +
						            		'</tr>'    

					              		;    
					              	 		              	
					              }
				        }
		            }
		            });
		}

		$(document).ready(function()
	    {
		    $.ajaxSetup({ cache: false }); 
		    	setInterval(function()
		    	{
		    		get_curOnline();
		    	}, 1000);   
	    });
